package com.winit.deployZone.manager;

import com.winit.deployZone.model.DeployZone;
import com.winit.deployZone.repository.DeployZoneOperations;
import com.winit.tag.repository.ConfigTagRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by wangjian on 2017/9/28.
 */
@Component
public class DeployZoneManager {

    private static Logger logger = LoggerFactory.getLogger(DeployZoneManager.class);

    @Autowired
    ConfigTagRepository repository;

    @Autowired
    private DeployZoneOperations deployZoneOperations;

    public List<DeployZone> getDeployZone(String deployCode) {
        return deployZoneOperations.getDeployZone(deployCode);
    }

}
